﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BarinPriceTan.aspx.cs" Inherits="Company_BarinPriceTan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../lib/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../lib/css/table.css" rel="stylesheet" type="text/css" />
    <script src="../lib/script/Common.js" type="text/javascript"></script>
    <style type="text/css">
        .searchbtn
        {
        }
    </style>
    <script>
        function check_IsFloat(obj) {
            var sId = obj.value;
            var limitprice = obj.limitprice;
            if (sId == "") {
                return true;
            }
            var info = "";
            if (!/^[0-9]+(.[0-9]{1,2})?$/i.test(sId)) {
                alert("请输入正确的价格！保留1-2位小数。");
                obj.value = "";
                obj.focus();
                return false;
            }
            if (parseFloat(sId) == 0) {
                alert("产品报价价格不能为0!");
                obj.value = "";
                obj.focus();
                return false;
            }
            //if (parseFloat(sId) > parseFloat(limitprice2)) {
            //    alert("产品建议价格:" + sId + "高于建议价限价:" + limitprice2);
            //    obj.value = "";
            //    obj.focus();
            //    return false;
            //}
            return true;
        }

        function inputCheck_Float(str) {//调用函数时可以是this.value
            if (event.keyCode == 8) {  //如果是删除键
                event.returnValue = true;
            }
            else if ((event.keyCode >= 96 && event.keyCode <= 105) || (event.keyCode >= 48 && event.keyCode <= 57)) {   //如果是数字
                if (str.split(".").length == 2 && str.split(".")[1].length == 4) {
                    event.returnValue = false;
                }
                else {
                    event.returnValue = true;
                }
            }
            else if (event.keyCode == 190 || window.event.keyCode == 110) {//如果是小数点
                if (str == "" || str.split(".").length == 3) {//判断是不是已经存在的小数点
                    event.returnValue = false;
                }
                else { event.returnValue = true; }
            }
            else { event.returnValue = false; }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="tabcontent">
        <table class="querylist" width="100%">
            <tr>
                <th>
                    专家建议价(元)：<asp:Label ID="lblExpertPrice" runat="server" Text="Label" ForeColor="Red"></asp:Label>
                </th>
            </tr>
            <tr>
                <th>
                    上限价(元)：<asp:Label ID="lblLimitPrice" runat="server" Text="Label" ForeColor="Red"></asp:Label>
                </th>
            </tr>
            <tr>
                <th>
                    还价价格：<asp:TextBox ID="txtBargainDecPrice" runat="server" Width="278px" CssClass="required"
                        onblur="return check_IsFloat(this);"  onkeydown="return inputCheck_Float(this.value);"></asp:TextBox>
                </th>
            </tr>
            <tr>
                <th>
                    还价理由：<asp:TextBox ID="txtRemarks" runat="server" Height="110px" Width="278px" TextMode="MultiLine"
                        MaxLength="100"></asp:TextBox>
                </th>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnAdd" runat="server" Text="保存" CssClass="searchbtn" OnClick="btnAdd_Click"
                        OnClientClick="return confirm('确定要进行当前还价操作,操作之后将再无法进行操作');" Width="68px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" id="btnBackPage" runat="server" value="关闭当前页面" class="searchbtn" 
                        onclick='javascript: window.opener.location.href = window.opener.location.href; window.close();' />
                </td>
            </tr>
        </table>
        <div class="listip">
            <ul>
                <li>提示： </li>
                <li><span>
                    <asp:Label runat="server" ID="Label1" Text="还价理由不得超过100个字。" ForeColor="Red"></asp:Label></span>
                </li>
                <li><span>
                    <asp:Label runat="server" ID="Label2" Text="使用货币为人民币，单位为元，报价保留到小数点后2位（即0.01，如超出小数点后3位，则四舍五入！"
                        ForeColor="Red"></asp:Label></span> </li>
                <li><span>
                    <asp:Label runat="server" ID="Label3" Text="在规定时间内，未及时响应专家价格、未进行网上确认的药品,自动进入第二轮议价！"
                        ForeColor="Red"></asp:Label></span> </li>
                <li><span>
                    <asp:Label runat="server" ID="Label4" Text="投标人对能够接受的价格予以确认，对不能接受的价格进行出价并填写理由后反馈给谈判(议价)专家！"
                        ForeColor="Red"></asp:Label></span> </li>
               <%-- <li><span>
                    <asp:Label runat="server" ID="Label5" Text="投标人一旦确认则不能更改，请认真处理！" ForeColor="Red"></asp:Label></span>
                </li>--%>
            </ul>
        </div>
    </div>
    </form>
</body>
</html>
